package com.Brave.manager.Demo05;

import java.util.concurrent.ArrayBlockingQueue;

public class Demo12 {
    public static void main(String[] args) {
        ArrayBlockingQueue<String> bd = new ArrayBlockingQueue<>(1);

        FoodieS f1 = new FoodieS(bd);
        CookerSs c1 = new CookerSs(bd);

        Thread t1 = new Thread(f1,"线程1");
        Thread t2 = new Thread(c1,"线程2");


        t1.start();
        t2.start();
    }
}
